# from data_keeper.data_keeper import *
# from data_keeper.views import *
# from datasets import *
#
#
from weblib.django.setting import get_setting

from filecache.models import *
from filecache.filecache_manager import *
from datakeeper.datakeeper import DataKeeper


keeper_fc_bucket = FileCacheBucket.objects.get_or_create(name='DataKeeper')[0]
keeper_fc_manager = FileCacheManager(bucket=keeper_fc_bucket)
data_keeper = DataKeeper(name='DefaultKeeper', filecache_manager=keeper_fc_manager, control='user')

### workers, etc.
#
# all_datasets = [
#     China_9KM_Anl(),
# ]
# # data keepers
# all_data_keeper = DataKeeper(datasets=all_datasets)
# data_keeper = all_data_keeper     # this is the data_keeper
#
# point_data_keeper = DataKeeper(datasets=[
#     China_9KM_Anl_Point()
# ])
#
# data_viewer = DataView()
# for dataset in point_data_keeper.datasets.values():
#     data_viewer.add_dataset(dataset)
